package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_face_machine")
public class FaceMachine extends Model<FaceMachine> {

    public static final String ID = "id";
    public static final String FACE_MAC = "face_mac";
    public static final String MAC = "mac";
    public static final String READER = "reader";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String SITE_ID = "site_id";
    public static final String DEL_FLAG = "del_flag";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
        /**
     * 人脸设备mac
     */
         private String faceMac;
        /**
     * 闸机设备
     */
         private String mac;
        /**
     * 1--开门  2--关门
     */
         private Integer reader;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    private Long siteId;
    private Integer delFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
